package com.example.springbootsenior.AOP.buy.service.impl;

import com.example.springbootsenior.AOP.buy.annotation.AimPoint;
import com.example.springbootsenior.AOP.buy.service.IBuy;
import org.springframework.stereotype.Component;

/**
 * 功能描述:
 *
 * @author: 李明杰
 * @date: 2021/11/25 20:07
 */
@Component
public class Adult implements IBuy {
    @Override
    public String buy() {
        return null;
    }

    @Override
    @AimPoint
    public String buy(double price) {
        System.out.println("我买了台法拉利" + price + "万元");
        return "法拉利";
    }
}
